import http from '@/utils/request'
// 用户登录
export const login = (params) => {
    return http({
      url: '/api/oauth/userlogin',
      method: 'post',
      data: params
    })
  }
  // 获取AppID
export const wechat = (params) => {
  return http({
    url: '/api/wechat',
    method: 'post',
    data: params
  })
}
// 微信授权
export const oauth = (params) => {
    return http({
      url: '/api/oauth',
      method: 'post',
      data: params
    })
  }
// token 验证 
export const checklogin = (params) => {
  return http({
    url: 'api/oauth/checklogin',
    method: 'post',
    data: params
  })
}
// 退出
export const exitlogin = (params) => {
  return http({
    url: '/api/oauth/exitlogin',
    method: 'post',
    data: params
  })
}

